<?php
loadview("top");
loadview("left");
?>
	<table align="center" width="450">
    	<tr>
        	<td class="title">ID</td>
        	<td class="title">Name</td>
        	<td class="title">Price</td>
        	<td class="title">Edit</td>
        	<td class="title">Del</td>
        </tr>
<?php
		foreach($data['info'] as $item){
			$stt++;
			echo "<tr>";
			echo "<td>$item[id]</td>";
			echo "<td>$item[name]</td>";
			echo "<td>$item[price]</td>";
			echo "<td><a href='".BASE_URL."/index.php?module=product&act=edit&id=$item[id]'>Edit</a></td>";
			echo "<td><a href='".BASE_URL."/index.php?module=product&act=del&id=$item[id]'>Del</a></td>";			
		}
?>        
    </table>
<?php
loadview("bottom");
?>